﻿using System;
using System.Collections.Generic;

namespace Coldairarrow.Util.Excel.Model
{
    public class ValidateExcel
    {
        public ValidateExcel()
        {
        }

        /// <summary>
        /// 配置
        /// </summary>
        public ValidateConfig Config
        {
            get;
            set;
        }

        /// <summary>
        /// Sheet列表
        /// </summary>
        public List<ValidateSheet> ValidateSheetList
        {
            get;
            set;
        }
        = new List<ValidateSheet>();

        /// <summary>
        /// 根据sheet名取出sheet
        /// </summary>
        /// <param name="sheetName"></param>
        /// <returns></returns>
        public ValidateSheet GetSheetBySheetName(string sheetName)
        {
            var sheet = this.ValidateSheetList.Find(t => t.SheetName == sheetName);
            return sheet;
        }
    }
}
